<%@page import="model.VUser"%>
<%@page import="persistent.impl.UserDAOImpl"%>
<%@page import="persistent.dao.UserDAO"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="css/topmenu.css" rel = "stylesheet" type="text/css"/>
<%
	UserDAO udao2=new UserDAOImpl();
	VUser loginuser=udao2.login("qqq", "123456");
 %>
</head>
<body>
	<div id="sysmenu">
		<span class="title">旅游博文</span>
		<%
			if(loginuser==null||loginuser.getUserid()==null){
			
		 %>
			<a href="addnormaluser.html" title="">注册</a>
			<a href="login.html" title="">登录</a>
			<%
			}
			else if(loginuser.getUsertype()==1)
			{
			
			 %>
			 <a href="logout" title="">退出登录</a>
			<a href="modifypwd.html" title="">修改密码</a>
				<a href="addblogeruser.html" title="">
				成为博主</a>
			<span class="but1">用户：<%=loginuser.getNickname() %></span>
			<%
			}
			else if(loginuser.getUsertype()==2)
			{
			 %>
			  <a href="logout" title="">退出登录</a>
			<a href="modifypwd.html" title="">修改密码</a>
				<a href="editblogeruser.html" title="">我的信息</a>
				<a href="editforum.html" title="">博文发表</a>
				<span class="but1">博主：<%=loginuser.getNickname() %></span>
				<%
				}
				 %>
			<div class="line"></div>
			<span class="but1">当前网站访问人数：10人</span>
	</div>

</body>
</html>